Add smarts to the GIF loader