def update_image(self, image_id, image_metadata, purge_props=False):
        if 'image' not in image_metadata.keys():
            image_metadata = dict(image=image_metadata)

        image_metadata['image'] = self.encrypt_metadata(
                                      image_metadata['image'])
        body = json.dumps(image_metadata)

        headers = {
            'Content-Type': 'application/json',
        }

        if purge_props:
            headers["X-Glance-Registry-Purge-Props"] = "true"

        res = self.do_request("PUT", "/images/%s" % image_id, body, headers)
        data = json.loads(res.read())
        image = data['image']
        return self.decrypt_metadata(image)
Retrieve an attribute from the wrapped object.  If the named
dataset/ETHPy150Open rcbops/glance-buildpackage/glance/registry/client.py/RegistryClient.update_image--crossover with--dataset/ETHPy150Open kayhayen/Nuitka/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Util.py/Proxy.__getattr__