public static async Task<VideoEncodingProperties> GetPictureRes()
{
await InitCam();
var resolutions = mediaCapture.VideoDeviceController.GetAvailableMediaStreamProperties(MediaStreamType.Photo).Select(x => x as VideoEncodingProperties);
////highest res possible
var maxRes = resolutions.OrderByDescending(x => x.Height * x.Width).FirstOrDefault();
return maxRes;
}