1. A method comprising: multiplying at least one portion of a dark frame by compensation values related to dark pixels of a picture frame to obtain an adjusted dark frame portion, the dark frame and the picture frame having been obtained from the same image sensor; and subtracting the adjusted dark frame portion from a corresponding portion of the picture frame to obtain a corrected picture frame.