with output of imerode