Modified algorithm for defocused image restoration