If I understand you correctly, this should do what you need.

Layer 1
Setup with your background image

Layer 2
Setup with your gobo image
Set the colour effect to Transparent Whites ( DMX value 4 )

The black in the gobo image will not show the bacground image, but where ever there is white in the gobo you will see the background image.

Is this what you wanted ?

AndyV