public Sprite(TextureLoader loader, String ref) {
		try {
			texture = loader.getTexture("sprites/" + ref);
			width = texture.getImageWidth();
			height = texture.getImageHeight();
		} catch (IOException ioe) {
			ioe.printStackTrace();
			System.exit(-1);
		}
	}