implemented flags to flip x and y coordinates on TexturedQuadNode
removed wrong if