It's a photo of the absence of light (in the middle) and light/particles swirling around the black hole that haven't passed the event horizon (yet).
Same way we can take a picture of a shadow - by taking a picture of the stuff surrounding it. This black hole is surrounded by a bright accretion disk.