minor optimization of canvas clearing