def __setstate__(self,state):
<EOL>if '<STR_LIT>' in state and state['<STR_LIT>'] is not None:<EOL><INDENT>state['<STR_LIT>'] = Image.open(BytesIO(state['<STR_LIT>']))<EOL><DEDENT>super(GenericImage,self).__setstate__(state)<EOL>
Load the object's state (as in the superclass), but replace
the '_image' string with an actual Image object.