I have had the same issue. It turns out the pictures can be taken with the phone upside down and you never know it untill you upload them. The iphone saves the picture with a small orientation EXIF file. To fix it I have been editing my photos by slightly resizing them. Then save as a new file. To keep new photos from doing this, take the pictures with your volume buttons facing down and your home button to the right.