rem: xchunk1->setImage( &image );
add: xchunk1->setImage( pImage );
context: void key(unsigned char key, int , int){    switch ( key )    {    case 27:    exit(0);    case 'a':   UChar8 imgdata[32];                for ( int i = 0; i < 32; i++ )                    imgdata[i] = (UChar8) rand();                pImage->set( Image::OSG_RGB_PF, 2, 2, 2, 1, 1, 0, imgdata );                xchunk1->imageContentChanged();                break;    case 'b':   {                UChar8 imgdata[16];                for ( int i = 0; i < 16; i++ )                    imgdata[i] = (UChar8) rand();                pImage->set( Image::OSG_RGBA_PF, 2, 2, 1, 1, 1, 0, imgdata );                beginEditCP( xchunk1 );                xchunk1->setImage( &image );                endEditCP( xchunk1 );                }                break;    case 'c':   {                beginEditCP( xchunk1 );                xchunk1->setMinFilter( GL_LINEAR_MIPMAP_LINEAR );                xchunk1->setMagFilter( GL_LINEAR );                endEditCP( xchunk1 );                }                break;    case 'd':   {                beginEditCP( xchunk1 );                xchunk1->setMinFilter( GL_NEAREST );                xchunk1->setMagFilter( GL_NEAREST );                endEditCP( xchunk1 );                }                break;    }}