1. A method for displaying a live preview image on an electronic device, said method comprising: computing a history color value and confidence value for each pixel of a sensor of a camera on said electronic device; obtaining a new frame of pixels from said camera; and for each pixel in said new frame: determining if a pixel color is similar to a corresponding history color value and if a confidence value corresponding to said pixel is above a predetermined threshold; responsive to a determination that said pixel color is not similar to said history color value and said confidence value is above said predetermined threshold, displaying said history color value on said live preview image when displaying said new frame; and responsive to a determination that said pixel color is similar to said history color value or said confidence value is below said predetermined threshold, displaying said pixel color on said live preview image when displaying said new frame; and calculating an updated history color value and an updated confidence value for said pixel.