Added some code to support TMW-style animated tiles

This is a bit unclean but it's convenient for converting the tile
animations to the TMX format.