1. A method, comprising: dividing a plurality of captured images into groups, each group comprising a number of consecutive frames; evaluating by an electronic device, image quality of said number of consecutive frames for said each group out of the plurality of said captured images using a predetermined criterion, wherein said number is an integer of at least a value of two; selecting by said electronic device, one frame out of said evaluated frames with the best image quality from said each group using a predetermined rule; and appending by said electronic device, said one frame from said each group to other selected frames for constructing an image panorama.