save canvas width/height in localStorage