private static ImageSource ConvertAndFreeze(byte[] bytes) { var imageSource = ByteImageConverter.Convert(bytes); imageSource?.Freeze(); return(imageSource); }