In SourceDetectionTask.thresholdImage(), not to use masked ('BAD' or 'SAT') pixels
to determine threshold values for detection in the case of thresholdType='stdev'.