Add rotate functionality to images
Clean up code and update test file
Merge pull request #29 from isha/rotate

Rotate