Auto-orient generated thumbnails

This will ensure that the thumbnail is oriented correctly, as long as the source has the "orientation" tag set in its EXIF data. Let me know if you think this would be better as an option - there might be some cases in which this is not wanted.