Oh, I see. That's built-in when you put a link in a post using the [url] bbcode (or use the editor button). I'm not sure what to do about that.
Maybe you could make a bbcode with a tag like ARTICLE and replacement:
Code:
<a href="content.php/{option}">{param}</a>
Then instead of using the link button, surround your images with that tag like:
Code:
[ARTICLE=129-PokerStars-Homepage](image here)[/ARTICLE]