If a passing photon is a bit too close, it will get trapped in orbit around the black hole. This creates what is called a "photon ring" or "photon sphere", a perfect ring of light predicted to surround the black hole, inside the inner rim of the accretion disc, but outside the event horizon.