Losslessly minimize all images