get the HTML code for a static image preview of a URL