def _clear_core_image(self):
    if self._coreimage:
        self._coreimage.unbind(on_texture=self._on_tex_change)
    self.texture = None
    self._coreimage = None
    self._loops = 0
def _clear_core_image(self):
    if self._coreimage:
        self._coreimage.unbind(on_texture=self._on_tex_change)
    self.texture = None
    self._coreimage = None
    self._loops = 0