That's great advice, thank you.
Perhaps in a future version, simply add a '$src' parameter to the function. If it's not null, then the search button code is replaced with a `type` of "image" and the `src` being the file passed in.
`echo "n<input type=\"image\" value=\"Search\" class=\"pushbutton\" id=\"search_submit\" src=\"/images/" . $src . "/>";`
instead of
`echo "n<input type=\"submit\" value=\"Search\" class=\"pushbutton\" id=\"search_submit\" />";`
In case anyone is interested, here my the zenPhoto implementation : http://www.breckenridgephotoshop.com/gallery/