On the convergence of discrete schemes for the Perona-Malik equation