change the image resizing command

pnmscale was obsoleted by pamscale.