Added a fixOrientation method for UIImage.