Support flipped tile for Tiled.

I've added in support for flipped tiles.