Updating image links in template files