thanks again, just what was needed.
the code on that page links to the id of the tags but you can just change it to ‘$tag->name’ so your image files just need to have the same names as your tags.
It’s also not a link but that’s easily solved with a
<a href="?tag=' . $tag->name . '">
excellent, you’ve been a great help.