If i'm correct you want a action when you click Image. Correct me If I'm wrong.
You just need to put the image between link tages
<a href=#><img src="image.jpg" alt="image" /></a>
To put the images in a grid you probably should use tables.
these are actualy basic HTML rules.
If these are the problems I advice you to take a look at w3c schools for basic HTML
This is my junk I'm gona eat it