public void render(Vector<SOMVector> inputs) {
		float fl = (float)Math.sqrt(inputs.size());
		int qb = Math.round(fl);
		
		if (fl > qb) qb += 1;
		
		float cellWidth = img.getWidth() / qb;
		float cellHeight = img.getHeight() / qb;
		
		int imgW = img.getWidth();
		int imgH = img.getHeight();
		
		Graphics2D g2 = img.createGraphics();
		g2.setColor(Color.BLACK);
		g2.fillRect(0,0,imgW,imgH);
		for (int x=0; x<qb; x++) {
			for (int y=0; y<qb; y++) {
				SOMVector vec = null;
				if ((y+qb*x) < inputs.size()) vec = inputs.get(y+qb*x);
				else vec = getNone();
				
				Color c = new Color(vec.get(0), vec.get(1), vec.get(2));
				g2.setColor(c);
				g2.fillRect((int)(x*cellWidth), (int)(y*cellHeight),
							(int)cellWidth +1 , (int)cellHeight +1);
			}
		}
		g2.dispose();
		repaint();
	}