Changed implementation of animation. Now longer derived from Sprite