Trouble importing images


Whenever I am trying to put an img file in my html code then preview it, the picture is sideways. Not always sideways, sometimes upside down or in other transformations. Is it always going to be like this, is there a package, am I missing a feature? It is very frustrating when they are all scrambled up and I have to make an individual code for each of them.
I currently have Atom 1.3.2 on Mac.