compress a picture