Templating links and images