Detect edges in an image using canny edge detector