honour exif data for jpg thumbnails

Signed-off-by: Joshua Paling <joshua.paling@gmail.com>
Merge pull request #168 from joshuapaling/feature-honour-exif-data

honour exif data for jpg thumbnails (aka, prevent thumbnails showing up sideways)