Adds methods to handle animations in GIF and Sprite