code: func NewImageManager(cfg *config.Config, client dockerapi.DockerClient, state dockerstate.TaskEngineState) ImageManager {
  	return &dockerImageManager{
  		client:                             client,
  		state:                              state,
  		minimumAgeBeforeDeletion:           cfg.MinimumImageDeletionAge,
  		numImagesToDelete:                  cfg.NumImagesToDeletePerCycle,
  		imageCleanupTimeInterval:           cfg.ImageCleanupInterval,
  		imagePullBehavior:                  cfg.ImagePullBehavior,
  		imageCleanupExclusionList:          cfg.ImageCleanupExclusionList,
  		deleteNonECSImagesEnabled:          cfg.DeleteNonECSImagesEnabled,
  		nonECSContainerCleanupWaitDuration: cfg.TaskCleanupWaitDuration,
  		numNonECSContainersToDelete:        cfg.NumNonECSContainersToDeletePerCycle,
  	}
  }
docs: // NewImageManager returns a new ImageManager