Masking a whole image in texture mode
Black and white images can be used as a Mask in the texture paint mode, setting them up in the Slots panel. 
The cool thing is that you can use that image you have there as a mask, and invert it to paint outside that area as well.
video on mask use with mask tool and stencil mask