getting the HTML for a static image preview of a URL