code: func getDestination(image *api.Image) string {
  	if val := getLabel(image, constants.DestinationLabel); len(val) != 0 {
  		return val
  	}
  	// For backward compatibility, support the old label schema
  	if val := getLabel(image, constants.DeprecatedDestinationLabel); len(val) != 0 {
  		glog.V(0).Infof("warning: Image %s uses deprecated label '%s', please migrate it to %s instead!",
  			image.ID, constants.DeprecatedDestinationLabel, constants.DestinationLabel)
  		return val
  	}
  	if val := getVariable(image, constants.LocationEnvironment); len(val) != 0 {
  		glog.V(0).Infof("warning: Image %s uses deprecated environment variable %s, please migrate it to %s label instead!",
  			image.ID, constants.LocationEnvironment, constants.DestinationLabel)
  		return val
  	}
  
  	// default directory if none is specified
  	return DefaultDestination
  }
docs: // getDestination finds a destination label in the image metadata