Convergence of discrete schemes for the Perona-Malik equation