Lossless GIF/PNG/JPG optimization