added a new tool for erosion and dilation