def METHOD_NAME(kernel, lifecycle=None):
    if lifecycle == "register":
        _ = kernel.translation
        @kernel.console_command(
            "vectrace",
            help=_("return paths around image"),
            input_type="image",
            output_type="elements",
        )
        def vectrace(data, **kwargs):
            elements = kernel.root.elements
            path = Path(fill="black", stroke="blue")
            paths = []
            for node in data:
                matrix = node.matrix
                image = node.image
                width, height = node.image.size
                if image.mode != "L":
                    image = image.convert("L")
                image = image.point(lambda e: int(e > 127) * 255)
                for points in _vectrace(image.load(), width, height):
                    path += Polygon(*points)
                path.transform *= Matrix(matrix)
                paths.append(
                    elements.elem_branch.add(
                        path=abs(path),
                        stroke_width=0,
                        stroke_scaled=False,
                        type="elem path",
                    )
                )
            return "elements", paths