restoreCanvas, clearCanvas