public static boolean registerIcon(String key, String path) {
		InputStream image = Library.getWorkingClass().getResourceAsStream(path);
		if (key != null && path != null && !key.equals("") && !path.equals("")){
			try {
				ImageIcon icon = new ImageIcon(ImageIO.read(image), path);
				if (icon != null) {
					keyToIconMap.put(key, icon);
					keyToPathMap.put(key, path);
					return true;
				}
			} catch (IOException e) {
				e.printStackTrace();
			}

		}
		System.out.println("Failed to register an icon with the path: " + path + " under the key: " + key);
		return false;
	}