fix for image missing on pdfs sent via email