1. A method for improving the quality of low-light images of a digital camera, said method comprising the steps of: receiving a low-light image and a dark frame, said low-light image and said dark frame having respective pixels therein, each said pixel having a respective pixel value associated therewith; subtracting respective pixel values of said dark frame from the corresponding pixel value of said low-light image, forming a resulting image therefrom having respective pixel values associated therewith; analyzing the respective pixel values of said resulting image for pixel values below a pixel threshold value, pixel values below said pixel threshold value constituting illegal pixels and pixel value at and above said pixel value threshold constituting legal pixel values; replacing respective illegal pixel values with respective legal pixel values according to a pixel replacement algorithm, forming a corrected resulting image therefrom; and outputting said corrected resulting image.