added AnimatedSprite class.