Changed moveto to translate in the draw function base class