Fixed flipping sprite that uses a rotated region.

closes #2280