How to use Boolean with an image

I have an image with a logo on it and a transparent background. I want to cut out the shape of the logo on a black square. I’m able to use boolean to do that with the text, but when i do it with the image it cuts out a whole square. Is it possible to cut out just the shape of the logo?
(I want to see through the black square in the shape of the logo i have)