internal async Task <ImageFetchResultModel> GetImageFromGallery(Size boundingSize) { var result = new ImageFetchResultModel(); try { result.Image = await galleryService.GetRandomImage(boundingSize); } catch (Exception ex) { result.HadError = true; result.ErrorMessage = $"Error getting image: {ex.Message}"; } return(result); }