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 (and changelog entry, once we have tests). If there were some tests for the old AT behavior, maybe Maarten could help with adapting those :+)