Black hole shadow and wandering null geodesics