Quantum implementation of the classical Canny edge detector