Creating outline

Hi there, I am interested in learning how to create an image like this. In particular I'd like to learn and understand how to create that overall white outline around the image. I'm assuming the final image is just the white parts and the "black" is just empty and filled by whatever background color it is placed on. Hopefully that makes sense and I look forward to any tips. Thanks.

