I use pdflib 4 beta, and my open_image looks like:
pdf_open_image_file ($pdf, \\"gif\\", \\"name.gif\\", \\"\\", 0);
The last two args are used for options related to masks I think, I did not need them last night when I was starting out with pdflib.
Dan