On the random walk metropolis algorithm for Gaussian random field priors and the gradient flow