Set height/width for canvas element.