You quoted code which uses the img tag; so, I assumed you wanted the code you quoted. IMG tags do not link to a photo page, but display an image.
Users can copy the URL of the page they are on from their browser, can they not?
Please do not PM me for support or sales questions. Thank you for your understanding.