Passing to the limit in maximal slope curves: from a regularized Perona-Malik equation to the total variation flow