Added patch for pdf_to_image to skip if cli