add pdf link to image thumbnail