fixed flip sprite rendering