def METHOD_NAME(self):
    """set image of new symbolObj"""
    assert self.x_symbol.name == 'xmarks'
    assert self.x_symbol.type == mapscript.MS_SYMBOL_PIXMAP
    format = mapscript.outputFormatObj('AGG/PNG')
    img = self.x_symbol.getImage(format)
    img.save('set-%s.%s' % (self.x_symbol.name, img.format.extension))