Replaced .tga file read/write with .pnm file read/write.