Refactored the global variables in the drawing module so that they're globally accessible.