added lineto to the sprite object