Lines in 2D photo component

Hi. I am trying out my first component from a photo. It’s a tree. I have everything set up ok as far as i know… But there is a pesky black outline around the image and I can’t seem to get rid of it wihtout getting rid of the whole image. Any help is appreciated. The image was from a png btw.

Try hiding the edges. Open the component for editing and hold Shift while clicking on the edges with the Eraser tool.