Added support for animated tiles.