I am going to guess you are left handed and using an iPhone 4s ?
When you tilt the iPhone it is naturally the wrong way as the designers are right handed and so causes the image to be caught upside down. I believe the newer hardware platforms now auto-solve this.