public void bringToTop(Layer l, PersistentCanvas canvas) {
        for (DrawableItem pi : l.getDrawable()) {
            canvas.removeItem(pi);
        }

        for (DrawableItem pi : l.getDrawable()) {
            canvas.addItem(pi);
        }
    }