Added support for animated textures