add support for embeding images into pdfs