On the Cahn-Hilliard regularization of a Perona-Malik type equation