lints code, reduces canvas size