code: def each_img(dir_path):
      
      for fname in os.listdir(dir_path):
          if fname.endswith('.jpg') or fname.endswith('.png') or fname.endswith('.bmp'):
              yield fname
docs: Iterates through each image in the given directory. (not recursive)
      :param dir_path: Directory path where images files are present
      :return: Iterator to iterate through image files