1. A scanner, the scanner comprising: a platen for accommodating a multiplicity of media sheets thereon; a scanlid pivotally coupled relative to the platen and movable between a closed position in which the scanlid substantially covers the platen and an open position in which the platen is substantially uncovered, the scanlid providing a background for scanning of the multiplicity of media sheets; an illuminating mechanism operably coupled to the scanlid, the illuminating mechanism being selectively activated for selectively illuminating the background for scanning of the multiplicity of media sheets; a scanhead for scanning the multiplicity of media sheets; and a controller communicatively coupled to the illuminating mechanism for: scanning the multiplicity of media sheets by the scanhead and upon activation of the illuminating mechanism capturing a single background image of the scanned multiplicity of media sheets; scanning the multiplicity of media sheets by the scanhead upon deactivation of the illuminating mechanism and capturing a single foreground image containing content of each individual media sheet of the multiplicity of media sheets; performing an edge detection algorithm on the captured background image of the scanned multiplicity of media sheets to detect edges of each individual media sheet within the captured background image of the scanned multiplicity of media sheets; and performing an image segmentation algorithm to extract the content of each individual media sheet in the captured foreground image by superimposing the detected edges for each individual media sheet on the captured foreground image.