Optimizing GIF.