Improve benchmarking to only measure the time it takes to apply canny edge detection.