*fillShapes(image: Image, ...* checks for *pathWidth == 0* and returns early when it is which avoids "index out of bounds, the container is empty" when attempting to access *coverages[0]*. *fillShapes(mask: Mask, ...* should perform the same check.
fillShapes(image: Image, ... checks for pathWidth == 0 and returns early when it is which avoids
"index out of bounds, the container is empty" when attempting to access coverages[0].
fillShapes(mask: Mask, ... should perform the same check.