Retrieves the image of a node.
malloc's a memory block, and copies the image into it.
Sets `val->attvalue
' to point to the memory block.
The application program is
responsible for free'ing the memory block.
Note that images are handled like attributes.
Function returns: