add function to just retreive the url instead of an img tag