Fixes incorrect flick direction after image is rotated.
Merge pull request #452 from PathXL/flick-after-rotate-fix

Fixes incorrect flick direction after image is rotated.