How can I display the image in the PDF?

Maybe you can help me.
First of all, some information about the system:
Linux: Debian 11 (bullseye)
php version 7.4.30 (cli)
SuiteCRM version 7.12.7
Sugar Version 6.5.25 (Build 344)

I have created a package with several modules.
One main module, several submodules.
From one of the submodules I create a PDF with the information from this module, the parent module and the other submodules.
Works perfectly.
At this stage I am working via the file formLetterPdf.
Now my question:
I would like to have an image, stored in the record of the module from which I create the PDF displayed with in the printed PDF.
Does anyone has tips how I can do this?

Yes, you can check how default Template processes the image from Header. Move generatePDF to custom and use it to add Image via HTML tag and make sure its accessible via Browser url too.

Thanks a lot.
I will try it this week.

Thanks a lot.
Now the image is printed in the PDF-file.
Before I copy my code into custom, I have to save the related id’s to the associated relationship table.