public static BufferedImage getImage(String imagePath) throws IOException, IllegalArgumentException {
		if (images.containsKey(imagePath)) {
			return images.get(imagePath);
		} else {
			try {
				images.put(imagePath, ImageIO.read(ImageLoader.class.getResource(imagePath)));
			} catch (IllegalArgumentException exception) {
				throw new IllegalArgumentException("'" + imagePath + "' can't be used as an image classpath.", exception);
				//TODO: Use a reasonably informative message if this error comes up.
			}
			return images.get(imagePath);
		}
	}