Unlike HTML, Canvas can't be resized dynamically without erasing the contents, so clear the canvas each time we reach the end...