imgToPDF and imgToTiff use Magikimage