added missing common drawing functions