private async Task ProcessMultipleImages(IEnumerable <BaseItemDto> items) { var list = new List <Stream>(); foreach (var item in items) { var url = _apiClient.GetImageUrl(item, MultiplePostersOptions); try { var stream = await _apiClient.GetImageStreamAsync(url); list.Add(stream); } catch (HttpException ex) { _logger.ErrorException("ProcessMultipleImages()", ex); } } if (list.IsNullOrEmpty()) { _logger.Debug("No images found, lockscreen image not changed"); return; } var lockscreen = new LockScreenMultiImage { ItemsSource = list, Height = 800, Width = 480 }; await ToImage(lockscreen); await SetLockScreenImage(LockScreenImageUrl); }