    # File lib/fog/openstack/requests/compute/create_image.rb, line 6
            def create_image(server_id, name, metadata={})
              body = { 'createImage' => {
                'name' => name,
                'metadata' => metadata
              }}
              data = server_action(server_id, body)
              image_id = data.headers["Location"].scan(/.*\/(.*)/).flatten[0]
              get_image_details(image_id)
            end