the canvas now has an dynamic size, but needs to be refreshed after a resize for now