Smooth and broken minimizers of some free discontinuity problems