Image orientation issue

This post should answer your questions:

Let us know if anything is not clear.