For me, this is the easiest method:
Once you've made your path, selected inverse, delete the background, select inverse again.
Duplicate the layer with the selection still made.
In your layer order box, click on the bottom layer.
Make sure your foreground color is black. (The squares of...