https://technicalsource9.medium.com/how-to-apply-a-color-thresholder-function-in-image-batch-processor-c4581798488