Small fix to write the gif to a file
Merge pull request #1 from jlarouche/giflib-writetofile

Small fix to write the gif to a file