convert to thumbs and add code for image links