Fixes incorrect flick direction after image is rotated.

The flick direction did not account for the rotation of the image. This PR fixes that.