Regularized Quadratic Penalty Methods for Shape from Shading