Add rotation support.
Merge pull request #1 from inamiy/rotation

Add rotation support.