Added kernelsize to erode filter