Use this code as a template and add it to a course page via the HTML content block:
<div align="center">
<a href="https://www.easygenerator.com/" target="_blank"><img alt="Easygenerator Logo" src="https://media.easygenerator.com/api/media/image/68a536b8-b10c-4dc1-99c0-8c4a94168fd8.png"></a>
</div>
The code has the following parts:
<a> .... </a> is the link tag
href attribute sets the URL to link to
target attribute specifies where to open the link; _blank opens the link in a new window or tab
<img> is the image tag
alt is the image alt text
src attribute sets the image URL
<div align="center"> .... <div> centers the image horizontally
Learn more about HTML image syntax here.
How to get the image URL
Open the image in the Library, right-click it, and select "Copy image address".