We present a maximum a posteriori solution to problems of accurate registration of blurred images and recovery of an original undegraded image. Our algorithm has the advantage that both tasks are performed simultaneously. An efficient implementation scheme of alternating minimizations is presented. A simulation and a real-data experiment demonstrate the superb performance of the algorithm.