Shrink and recompress images