cximage: fixed loading/unloading and freeing memory.