'perform image import'

def _import_image(self, url=None, name=None, tag=None):

    cmd = ['import-image']
    image = '{0}'.format(name)
    if tag:
        image += ':{0}'.format(tag)
    cmd.append(image)
    if url:
        cmd.append('--from={0}/{1}'.format(url, image))
    cmd.append('-n{0}'.format(self.namespace))
    cmd.append('--confirm')
    return self.openshift_cmd(cmd)
