Implements a gradient descent with a Rayleigh Dataterm and a Total Variation regularization