change the image converting command

pngtopnm was obsoleted by pngtopam.
pnmtotiff was extended and renamed to pamtotiff.
pnmtogif is not present but pamtogif is.