[Olena-patches] milena r1677: Make dilation works on binary images