'Configure the image.'

def configure(self, **kw):

    res = ()
    for (k, v) in _cnfmerge(kw).items():
        if (v is not None):
            if (k[(-1)] == '_'):
                k = k[:(-1)]
            if hasattr(v, '__call__'):
                v = self._register(v)
            res = (res + (('-' + k), v))
    self.tk.call(((self.name, 'config') + res))
