This method is used to remove canvases from the frame
This will collpase canvas, which removes it from the panel that it is in. The canvas is usually obtained from active-canvas.