Add support for animated textures.  Closes #9.