An edge-preserving multilevel method for deblurring, denoising, and segmentation