Text this: Diagonal variable matrix method in solving inverse problem in image processing