private static void loadAnimations() {
		File f = new File(Preferences.ANIMATION_PATH);
		String[] folders = f.list();
		String[] files;
		
		if (folders != null) {
			for (String s : folders) {
				f = new File(Preferences.ANIMATION_PATH + "/" + s);
				files = f.list();
				if (files != null) {
					ArrayList<BufferedImage> images = new ArrayList<BufferedImage>();
					for (String ss : files) {
						try {
							BufferedImage readImage = ImageIO.read(new File(Preferences.ANIMATION_PATH + "/" + s + "/" + ss));
							if (readImage != null) {
								images.add(readImage);
							}
						} catch (IOException e) {
								e.printStackTrace();
						}
					}
					animations.put(s, new AnimationHolder(images));
				}
			}
		}
	}