pass options object to draw function

this is needed for passing options like scale, width and height settings from external scripts