By default, the photo is inserted without a link to the original:

To insert a link, you have to manually write the HTML code:
<a href="images/IMG_20220126_195659.jpg"><img src="
images/IMG_20220126_195659.jpg"></a>
How can this process be automated?
What are the options?