integrated calligraphy code into drawVisual, modified recording code to call updateVisual and drawVisual rather than drawLine