Stop the GIF when the image is complete