1. A method for removal of undesired objects from image data by an image detection device, wherein the image detection device is operative to perform the method comprising the acts of: detecting an amount of movement in image data during a preview mode; detecting image data for a first frame; detecting image data for a second frame, wherein a duration between detecting image data for the first and second frames is based on at least the detected amount of movement in the preview mode and detecting a type of physical support currently being used for supporting the image detection device; detecting motion of an undesired object based, at least in part, on image data for the first and second frames; replacing image data of the first frame with image data of the second frame to generate corrected image data, wherein the undesired object is removed from the corrected image data; and storing the corrected image data.