Implemented tmx support with complete tile flipping.