How can I invert a mask?

I have a prototype whereby when I move my mouse across an image, there is a glow that follows the cursor movement.

My issue is that I want to make the background black (on top of the original image) and invert the cursor glow, so that moving the mouse reveals the image behind the black background, wherever you move the cursor.

How can this be done?

(Below: the image with the mouse cursor glow. So I need this to occur with a black background and with the yellow glow instead revealing this image behind the background)

Hope this makes sense!