Are these images that you have taken with an iPhone or iPad? If so, its how they are created and its stored, I believe, in the exif data and you would need to do a search on how to get round this. A quick search found this: http://iphonephotographyschool.com/iphone-photos-upside-down/
All the best
Jamie