private async void PickPhotoExecute() { try { var file = await GetImageFile(); if (file == null) { return; } var bitmap = new BitmapImage(); var thumbnail = await _visionApi.GetThumbnailImage(await file.OpenReadAsync(), 500, 500); await bitmap.SetSourceAsync(thumbnail); SendImage(bitmap, SenderSide.Local); var response = await _dialogManager.Process(await file.OpenReadAsync()); SendText(response, SenderSide.Remote); } catch (Exception e) { SendText(e.ToString(), SenderSide.Remote); } }