Add clear method for the LayerPanel