Replacing Black with a bitmat

I  Have a black and white logo

 

I also have a JPG of flames

 

I would like to replace the black with the flames

 

Can this be done?  I am pulling my hair out!  Any help would be greatly appreciated!!  :)