Bug: threshold ignored in compute_multi_epi_mask