Reworked based on the PR review. https://github.com/BenriJS/Draw/pull/3