[#22] Added functionality to AnimatedSprite and TextSprite.