code: func ImageNameToAppName(name types.ACIdentifier) (*types.ACName, error) {
  	parts := strings.Split(name.String(), "/")
  	last := parts[len(parts)-1]
  
  	sn, err := types.SanitizeACName(last)
  	if err != nil {
  		return nil, err
  	}
  
  	return types.MustACName(sn), nil
  }
docs: // ImageNameToAppName converts the full name of image to an app name without special
  // characters - we use it as a default app name when specyfing it is optional