Fix incorrect thumbnail sizes for rotated JPEGs.

- Do not call exif[auto]tran when not needed.
- Refresh width/height after rotation.
Fix encoding of the album name.