modified canvas draw functions to use objects instead of property arguments