[dokuwiki] Show only a single image with Gallery Plugin

I want to show just one Image with the gallery plugin to use the lightbox effect and the other advantages over the normal way to show images.
When I use something like this:
{{gallery>namespace:filename.jpg}}
I get the message "Not found" instead of the image. I had a look into the gallery plugins syntax.php and the commands used to get all the files are:
$ns = cleanID($data['ns']);
$dir = utf8_encodeFN(str_replace(':','/',$ns));
$files = array();
search($files,$conf['mediadir'],'search_media',array(),$dir);
In my understanding the search command should normally also work with complete filenames (in the variable $dir) instead of only namespaces (in $dir). What do I have to change to use filenames in addition to only namespaces?

Thanks,
Florian
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: