conversion between PPM-Ascii/Binary and TARGA type 2 (unmapped rgb image)