Enable progressive encoding for new JPEG thumbnails and samples; see issue #1665

Enable progressive encoding for resized images, as discussed in issue #1665. Works with every normal browser, but might introduce compatibility issues with certain embedded devices.