Fixed bug with image rotation from iphone photos