 
     legend_target.exit().remove()
 
-  {draw, destroy}
+  {draw, exportImage, destroy}
 
 module.exports = {create}

  destroy = ->
    _.each(destroyFunctions, (f) -> f())
    destroyFunctions = []

  draw = (data, params) ->
    destroy()

_ = require 'underscore'
moment = require 'moment'
Bacon = require 'bacon.model'
Q = require 'q'

clearExtent = (v) -> _.extend {}, v, {extent: null}
setBrushing = (v) -> _.extend {}, v, {brushing: true}
