clear graphics when drawing new frame