compress img and add links