add thumbnails and <link>