1. A computer-readable storage medium encoded with executable instructions for execution by a processor to generate a final image from a first image with a first exposure and a second image with a second exposure longer than the first exposure, the instructions comprising: determining if the first and the second images are smaller than a threshold size; when the first and the second images are smaller than the threshold size, using a deblurring procedure to generate the final image from the first and the second images; when the first and the second images are not smaller than the threshold size: saving the first and the second images at a size smaller than their original size as third and fourth images, respectively; using the deblurring procedure to generate a fifth image from the third and the fourth images; and transferring color from the fifth image to the first image based on the third image to generate the final image; displaying the final image.