refactoring: add file drawing_helper.js for drawing functions