private byte[] loadImage(String imgPath) {
		byte tableAr[] = new byte[LedTable_Settings.ledX * LedTable_Settings.ledY * 3 + 1];
		tableAr[0] = (byte)'4';
		
		try {
			URL fileURL = new File(imgPath).toURI().toURL();
			BufferedImage img = ImageIO.read(fileURL);
			
			int cell = 1;
			for (int y = 0; y < img.getHeight(); y++) {
				if (y % 2 == 0) {
					for (int x = 0; x < img.getWidth(); x++) {
						int rgb = img.getRGB(x, y);
						byte r = (byte) ((rgb & 0x00ff0000) >> 16);
						byte g = (byte) ((rgb & 0x0000ff00) >> 8);
						byte b = (byte)  (rgb & 0x000000ff);
						
						if (x < LedTable_Settings.ledX && y < LedTable_Settings.ledY) {
							tableAr[cell++] = (byte)r;
							tableAr[cell++] = (byte)g;
							tableAr[cell++] = (byte)b;
						}
						else {
							System.out.println("Pixel discarded at x,y: " + x + "," + y);
						}
					}
				}
				else {
					for (int x = img.getWidth()-1; x >= 0; x--) {
						int rgb = img.getRGB(x, y);
						byte r = (byte) ((rgb & 0x00ff0000) >> 16);
						byte g = (byte) ((rgb & 0x0000ff00) >> 8);
						byte b = (byte)  (rgb & 0x000000ff);
						
						if (x < LedTable_Settings.ledX && y < LedTable_Settings.ledY) {
							tableAr[cell++] = (byte)r;
							tableAr[cell++] = (byte)g;
							tableAr[cell++] = (byte)b;
						}
						else {
							System.out.println("Pixel discarded at x,y: " + x + "," + y);
						}
					}
				}
			}
		}
		catch (IOException ioe) {
			System.out.println("Error opening file: " + ioe);
		}
		return tableAr;
	}