some test code that may be used to resize the canvas