'Given a response and mapping of image metadata, injects
the Response with a set of HTTP headers for the image
metadata. Each main image metadata field is injected
as a HTTP header with key \'x-image-meta-<FIELD>\' except
for the properties field, which is further broken out
into a set of \'x-image-meta-property-<KEY>\' headers
:param response: The Webob Response object
:param image_meta: Mapping of image metadata'

def _inject_image_meta_headers(self, response, image_meta):

    headers = utils.image_meta_to_http_headers(image_meta)
    for (k, v) in headers.items():
        if six.PY3:
            response.headers[str(k)] = str(v)
        else:
            response.headers[k.encode('utf-8')] = v.encode('utf-8')
