Forum Moderators: open
The easiest way for you to copy what Google does is to have a look at the source code for their site.
I just had a look, and what it actually does is use Javascript to submit the search form to the Image search page when you click on the Image link - so it is not strictly a link, it is more like a submit button.
The value of "q" (the input field) is then used by the Image page just as any page uses a form variable received via a GET operation.