add: _info->id = id; user_debug_image_created(_info);
context: register_image(struct team *team, image_info *_info, size_t size){	image_id id = atomic_add(&sNextImageID, 1);	struct image *image;	image = malloc(sizeof(struct image));	if (image == NULL)		return B_NO_MEMORY;	memcpy(&image->info, _info, sizeof(image_info));	mutex_lock(&sImageMutex);	image->info.id = id;	list_add_item(&team->image_list, image);	mutex_unlock(&sImageMutex);	TRACE(("register_image(team = %p, image id = %ld, image = %p\n", team, id, image));	return id;}