Animated textures

This commit adds support for animated textures (untested)