preprocessor parses sketchWidth/Height/Renderer, fixed error handling