Added support for one time animations to Sprite.