Applied patches for pdf_to_imagefield