Optimizes the glitch gif.