Fix bit indexing in BWCanvas.