rotating refactor, fixing image crop when rotating with wrong orientation
Merge pull request #30 from blackm00n/master

fixing rotation bug for images of non std orientation