When the user wants the animated GIF to not loop ($loop == 1) then
browsers seem to interpret this differently. Chrome will play animation
twice while Firefox will play animation once.

To work around this strangeness we can remove the loop count completely from
the GIF and this seems to be interpreted as "play once only" by all browsers.