Add pnmgen.sh, test-pnmgen.sh and test images