Compress images with imageOptm