added blur to make edge detection more accurate