link images with template