Method for Correcting A Digital Image