Add autorotation for images

This is from @maartenkling's blog post with a fix for current released version of exifread.

This really needs some testing. If there were some tests for the old AT behavior, maybe Maarten could help with adapting those :+)