Utility for lossless GIF/PNG/JPG optimization