changes url to image url