Compressing the images