eraseGraphic method