Added ability to stop looping animation after it