private static int createOldStyleIcon(StdImage image, List<byte[]> imageData, List<Integer> imageType, int type) {
		int size = image.getWidth();
		byte[] bytes = new byte[size * size * 4];
		int i = 0;
		for (int y = 0; y < size; y++) {
			for (int x = 0; x < size; x++) {
				EndianUtils.writeBEInt(image.getRGB(x, y), bytes, 4 * i++);
			}
		}
		imageData.add(bytes);
		imageType.add(Integer.valueOf(type));
		return 8 + bytes.length;
	}