Question: why img tag displays wrong orientation?
Answer: It happens since original orientation of image is not as we see in image viewer. In such cases image is displayed vertical to us in image viewer but it is horizontal in actual. To resolve this do following: Open image in image editor like paint ( in windows ) or ImageMagick ( in linux).