Reworked how sprites flip when rotated.