Handle rotation problem. This is caused by ImageIO not correctly reading EXIF.