Pdf writer

I have another question,
does any one knows how to use pdf.add_image with
PDF::Writer::Graphics.new
I use them, but always I get errors

thanks