Get rid of edge, loop cut, export to JPG

How do I get rid of the weird edge? And how can I cut out the edges as well as export this to JPG?

What weird edge exactly?

If you mean the wall that is along the edge of the model, then you should select those vertices then delete them using the x command:
delete edges

You don’t “export” to image formats, you render them using the camera in the viewport. Make sure you have your camera positioned the way you want it, then press f12. Locking the camera to view helps position it. In the 3d view press N to open the sidebar, then under view tab press view lock > camera to view.