issue #961 fixed - didn't handle per-object thresholding with image mask