bug fix in flipY on textures