pnmtojpeg command in the convertImages method