added the possibility to define a dirt mapping mask for valid dirt detections