protected Texture load(String ref) throws IOException {
		if(ref.endsWith(".tga")) {
			return TextureLoader.getTexture("TGA",
					ResourceLoader.getResourceAsStream(System.getProperty("resources") + "/sprites/" + ref + ".tga"));
		}
		return TextureLoader.getTexture("PNG",
				ResourceLoader.getResourceAsStream(System.getProperty("resources") + "/sprites/" + ref + ".png"));
	}