Improve GIF analysis performance

Modified libgif so that it no longer decodes pixel data and other
information that I'm not interested in.