These netpbm formats are extremely simple image formats which can
be written with a very small amount of code. Implement the ASCII
PBM and PPM formats for eventual use in test scripts, and PAM as a
fully-featured format so that we can make libpng optional.