Grasshopper parametric Modeling Roots

Hi! I’m also trying to model something similar to this (minus the plants) as a 3d printing project. The goal is to have it look like roots while the density of the openings can be controlled by an image. I’m having trouble making a script that can achieve the smooth transitions of the opening and maintaining the curves.