Detecting cosmic strings in the CMB with the Canny algorithm