public TextureAtlas(String path, int cw, int ch) {
		try {
			BufferedImage bi = ImageIO.read(new File("src/" + path));
			tiles = new Texture[bi.getWidth() / cw][bi.getHeight() / ch];
			for (int i = 0; i < bi.getWidth() / cw; i++) {
				for (int j = 0; j < bi.getHeight() / ch; j++) {
					Texture t = BufferedImageUtil.getTexture(path, bi.getSubimage(i * cw, j * ch, cw, ch));
					RenderAssistant.improveTexture(t);
					tiles[i][j] = t;
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}