Issue #4926: fixed a bugs of TextureCache that it can't remove the event handler of image

Fixed a bugs of TextureCache that it can't remove the event handler of image