private function colorMeanValue($resource) {
		$colorList = array();
		$colorSum = 0;
		for ($a = 0; $a<8; $a++) {
			for ($b = 0; $b<8; $b++) {
				$rgb = imagecolorat($resource, $a, $b);
				$colorList[] = $rgb & 0xFF;
				$colorSum += $rgb & 0xFF;
			}
		}
		
		return array($colorSum/64,$colorList);
	}