How to call map and gallery image(s) for PDF conversion?