Added function that flips sprites on the y-axis