Fixed ipython 1.0 dependency issue for deprecated locations
Added kernelsize to erode filter