Erase part of imported image

Importing a photo image to trace its outline on another layer, then erasing unnecessary background in this imported image would really be useful. But since the eraser cannot do this, this means having to erase the image parts in another paint or draw software prior to importing it in.