implemented dilatation and erosion plugin