Made some progress on the SingleImageVisDriver, added a locsToMask function that works like locsToBool but generates a mask where the contour is colored white, and everything else is colored black, and fixed a bug in locsToBool where it bounds checked the x-direction against img.rows instead of img.cols, which was causing it to output all-0 boolean matrices for contours that were actually within the bounds of the image.