public byte[] getIconImageData() {
		if (Parameters.APP_ICON == null)
			return null;
		try {
			ByteArrayOutputStream out = new ByteArrayOutputStream();
			ImageIO.write(Parameters.APP_ICON,"jpg",out);
			out.flush();
			byte[] data = out.toByteArray();
			out.close();
			return data;
		} catch (IOException e) {
			System.err.println("Error writing app icon to byte array");
			e.printStackTrace();
			return null;
		}
	}