Edit the entry in the Connections admin scroll to the metabox where you added the link to the site. Choose the option to assign it to the photo/image and update the entry.
After you do, the photo will now be a link to that site.
No code changes necessary, which are the best :)
Hope this helps! Let me know.