code: func (cli *Client) ImageCreate(ctx context.Context, parentReference string, options types.ImageCreateOptions) (io.ReadCloser, error) {
  	ref, err := reference.ParseNormalizedNamed(parentReference)
  	if err != nil {
  		return nil, err
  	}
  
  	query := url.Values{}
  	query.Set("fromImage", reference.FamiliarName(ref))
  	query.Set("tag", getAPITagFromNamedRef(ref))
  	if options.Platform != "" {
  		query.Set("platform", strings.ToLower(options.Platform))
  	}
  	resp, err := cli.tryImageCreate(ctx, query, options.RegistryAuth)
  	if err != nil {
  		return nil, err
  	}
  	return resp.body, nil
  }
docs: // ImageCreate creates a new image based in the parent options.
  // It returns the JSON content in the response body.