Deblurring images with mathematical models