Fixing displaying textures that must be flipped vertically