Added remask method which processes the mask without changing the
histogram bounds.