using (var memoryStream = new MemoryStream()) { await image.CopyToAsync(memoryStream); using (var img = System.Drawing.Image.