add base url to target image in template