[ImageManager] fix possible BSOD.