Adding ability to get nextFrame of an animation.