I'd say, add a black surface layer, pull a line form the stones, adjust the colors back to white (as they're usually clored a bit darkish), add as child to the black surface layer and use that as mask. That's my method, at least. No need to render a mask first.