Fix undefined reference on resize

Variable scope error
Uncaught ReferenceError: drawingWidth is not defined