Added so that when animated paused it would reset to the first frame