def unload(self):
        '''Releases renderer resources associated with this image.'''
        if self._handle != -1:
            lib.UnloadImage(self._handle)
        self._handle = -1
Releases renderer resources associated with this image.