AnimatedSprite class