compresed all the images to certain extent