Support progressive JPEGs in image-size function