issue #928 changed Mask to Binary mask
issue #929 code not executed if propagating from edges of other objects and other objects not present.