Fixed rotations more than 360 degrees
Merge remote-tracking branch 'glorf/rotate-update1'