Slowly implementing canny edge detection