To take a complex (or simple ) shape out of an image, press ctrl + alt + X to get to the Extract dialog. Then, use the highlight tool to highlight the edges of your shape, and the fill tool to fill the area inside the highlighted border. Then click Ok, and just like magic, you have the thing you wanted, minus the background.