The Gamma-limit and the related gradient flow for singular perturbation functionals of Perona-Malik type