code: def image_resources(package=None, directory='resources'):
      
      if not package:
          package = calling_package()
      package_dir = '.'.join([package, directory])
      images = []
      for i in resource_listdir(package, directory):
          if i.startswith('__') or i.endswith('.egg-info'):
              continue
          fname = resource_filename(package_dir, i)
          if resource_isdir(package_dir, i):
              images.extend(image_resources(package_dir, i))
          elif what(fname):
              images.append(fname)
      return images
docs: Returns all images under the directory relative to a package path. If no directory or package is specified then the
      resources module of the calling package will be used. Images are recursively discovered.
  
      :param package: package name in dotted format.
      :param directory: path relative to package path of the resources directory.
      :return: a list of images under the specified resources path.