'Return a dictionary with image details.'

def show(self, request, image):

    image_dict = {'id': image.get('id'), 'name': image.get('name'), 'minRam': int((image.get('min_ram') or 0)), 'minDisk': int((image.get('min_disk') or 0)), 'metadata': image.get('properties', {}), 'created': self._format_date(image.get('created_at')), 'updated': self._format_date(image.get('updated_at')), 'status': self._get_status(image), 'progress': self._get_progress(image), 'links': self._get_links(request, image['id'], self._collection_name)}
    instance_uuid = image.get('properties', {}).get('instance_uuid')
    if (instance_uuid is not None):
        server_ref = self._get_href_link(request, instance_uuid, 'servers')
        image_dict['server'] = {'id': instance_uuid, 'links': [{'rel': 'self', 'href': server_ref}, {'rel': 'bookmark', 'href': self._get_bookmark_link(request, instance_uuid, 'servers')}]}
    auto_disk_config = image_dict['metadata'].get('auto_disk_config', None)
    if (auto_disk_config is not None):
        value = strutils.bool_from_string(auto_disk_config)
        image_dict['OS-DCF:diskConfig'] = ('AUTO' if value else 'MANUAL')
    return dict(image=image_dict)
