public static Map<String, BufferedImage> getDataFromDirPath(String dirPath) {
	Map<String, BufferedImage> res = new HashMap<>();
	File dir = new File(dirPath);
	if (dir.isDirectory()) {
	    try {
		ImagesIterator imagesIterator = new ImagesIterator(dir);
		while (imagesIterator.hasNext()) {
		    File imgFile = imagesIterator.next();
		    BufferedImage bufferedImage = ImageIO.read(imgFile);
		    String filenameOfCurrentImage = imagesIterator.getFilenameOfCurrentImage();
		    StringTokenizer st = new StringTokenizer(filenameOfCurrentImage, "._");
		    res.put(st.nextToken(), bufferedImage);
		}
	    } catch (IOException ex) {
		Logger.getLogger(ImagesLoader.class.getName()).log(Level.SEVERE, null, ex);
	    }
	}
	return res;
    }