Implemented Sprite caching