Changes to not write PDFImage