wrote a piece of code to clear out the black image we draw the simulated image to.