make canvas.erase simpler