Speed up blank image analysis by working on the thumbnail, which is faster due to jpegtran