'Store the image data and return the new image object.'

def create(self, context, image_meta, data=None):

    force_activate = ((data is None) and (image_meta.get('size') == 0))
    sent_service_image_meta = _translate_to_glance(image_meta)
    try:
        image = self._create_v2(context, sent_service_image_meta, data, force_activate)
    except glanceclient.exc.HTTPException:
        _reraise_translated_exception()
    return _translate_from_glance(image)
