attempt to make thresholdTwoLevels work for o5ified 2d images