code: func (ef *Filter) matchImage(ev events.Message) bool {
  	id := ev.Actor.ID
  	nameAttr := "image"
  	var imageName string
  
  	if ev.Type == events.ImageEventType {
  		nameAttr = "name"
  	}
  
  	if n, ok := ev.Actor.Attributes[nameAttr]; ok {
  		imageName = n
  	}
  	return ef.filter.ExactMatch("image", id) ||
  		ef.filter.ExactMatch("image", imageName) ||
  		ef.filter.ExactMatch("image", stripTag(id)) ||
  		ef.filter.ExactMatch("image", stripTag(imageName))
  }
docs: // matchImage matches against both event.Actor.ID (for image events)
  // and event.Actor.Attributes["image"] (for container events), so that any container that was created
  // from an image will be included in the image events. Also compare both
  // against the stripped repo name without any tags.