Pause image animation

This pull request refers to and closes #1.