Fixed text drawing.
Implemented sprite flipping on horizontal and vertical axis.