First commit of working code, migrated from svn.

First commit of working code. Supports .TGA, .PCX, .RAS / .SUN, and .PPM
/ .PGM / .PBM / .PNM.