rem: image.read(argv[1]); image.dump(); image.write( (argc > 2) ? argv[2] : defaultOutImage);
add: pImage = new Image;  pImage->read(argv[1]); pImage->dump(); pImage->write( (argc > 2) ? argv[2] : defaultOutImage);  OSG::subRefP(pImage);
context: int main (int argc, char **argv){    int retCode = 0;    char defaultOutImage[] = "out.pnm";    Image image, image2;    OSG::ImageFileHandler::the().print();    if (argc > 1)    {        image.read(argv[1]);        image.dump();        image.write( (argc > 2) ? argv[2] : defaultOutImage);    }    else    {        FLOG (("usage: %s inputimage [ouputimage]\n", argv[0]));        retCode = -1;    }    return retCode;}