Tweaked FrameAnimation class, making it easier to use.