v1.22: Better segmentation detection + black background