Added the AnimatedSprite class