Rebuild gif index