Updated canvas hash method - bugfix

We need the dimension of the canvas in the canvas-hash.