For this you need also the file name of the image. Also you need to get the album name of the album the image belongs to. Then you have to create an albumobject using `new Album()`:
http://www.zenphoto.org/documentation/classes/Album.html#methodAlbum
With that you then need to create an image object using `newImage()`.
http://www.zenphoto.org/documentation/classes/_class-image.php.html#functionnewImage
Now you can use the image class methodes to get the thumb, custom images etc.
http://www.zenphoto.org/documentation/classes/_Image.html
Of course on that page if it is not a Zenphoto theme page you need to have the Zenphoto functions available, for example this way:
http://www.zenphoto.org/2008/01/hacks/#zenphoto-as-plugin