Only create displayLink if there is an animated image.

Also fixes a crash where `changeKeyframe:` would be called without an animated image.