code: def allowed_image(self, module_id):
  		
  		shutit_global.shutit_global_object.yield_to_draw()
  		self.log("In allowed_image: " + module_id,level=logging.DEBUG)
  		cfg = self.cfg
  		if self.build['ignoreimage']:
  			self.log("ignoreimage == true, returning true" + module_id,level=logging.DEBUG)
  			return True
  		self.log(str(cfg[module_id]['shutit.core.module.allowed_images']),level=logging.DEBUG)
  		if cfg[module_id]['shutit.core.module.allowed_images']:
  			# Try allowed images as regexps
  			for regexp in cfg[module_id]['shutit.core.module.allowed_images']:
  				if not shutit_util.check_regexp(regexp):
  					self.fail('Illegal regexp found in allowed_images: ' + regexp) # pragma: no cover
  				if re.match('^' + regexp + '$', self.target['docker_image']):
  					return True
  		return False
docs: Given a module id, determine whether the image is allowed to be built.