Sprite flip fix

Fixed the flipping for the sprites so when they go negative, the upper
left corner is left in the same place.