Fixed caching of GIF images.