The auto swap buffer mode is enabled by default (buffer swap != clear color). You could use an offscreen buffer to save the result of a drawing (the previous image(s)) and draw over it at each frame.
Why would the drawing of each image cost a lot of computations?