Fixing Canny edge detection method.