Optimal Approximations by Piecewise Smooth Functions and Associated Variational Problems - [ Mumford-Shah ]