One of the WordPress plugins renders the uploaded image as a link:
<a href="https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" target="_blank" aria-label="new">news-paper.png</a>
I want to convert it to an tag with JavaScript so that the link is displayed as an image