I used to have the rotating problem and it was so annoying! What I found works, is to crop the photo, even slightly if it doesn't actually need cropping. I'm on my phone so I use either my photo gallery app or a photo editing app I have. The edited photos never get rotated. I don't know WHY it works, but it does.
Bookmarks