I see, computePreviewSampleSize does the jpeg check...