optimize images, create thumbs and link to real size img