Added reset if the new cursor image is NULL