Compress images and clean up html