How to link course's image to the course' detail page

Please let me know how to add a link to an image on main course list page and point it to course's details page?