Gradient estimates for the Perona-Malik equation