Add support for flipped and animated tiles