Transpose image using EXIF orientation

The original image is transposed using the EXIF orientation
information. Make the iPhone users happy.

Thank to @holzenburg for the patch.