Calibrate_hitor very slow, might be faster with mask object
The calibrate_hitor routine has special needs according to mask shifting: Only 4 pixels on four different hitor lines can be activated at a time. This is so far solved by manual masking in the scan loop. By adding a new mask pattern to the mask object, this could potentially be sped up by a lot.