Added patches for pdf_to_imagefield