Exploding images to change cut depth

This may or may not already exist but is there a method of manipulating an imported image to allow you to set the z depth for particular lines of an image. Mainly to set the circumference to cut the whole way through yet engrave the internal lines?

As long as the “pieces” are separate curves they can have separate cut depths.