Added patches for pdf_to_image module