Applying canny algorithm