Added caching to texture for sprite-sheet animations.