header('Content-type: image/jpeg');
imagecreatetruecolor(320, 350);
$back = imagecreatefromjpeg("black.jpg");
$NEred = imagecreatefromjpeg("NEred-new.jpg");
$NWred= imagecreatefromjpeg('NWred-new.jpg');
$NEgold = imagecreatefromjpeg('NEgold-new.jpg');
$NWgold = imagecreatefromjpeg("NWgold-new.jpg");
$SEgold = imagecreatefromjpeg("SEgold-new.jpg");
$SWgold = imagecreatefromjpeg("SWgold-new.jpg");
imagecopy($back, $NWred, 80, 0, 0, 0, 40, 18);
imagecopy($back, $NEred, 120, 0, 0, 0, 40, 18);


imagecopy($back, $NWgold, 80, 18, 0, 0, 20, 13);
imagecopy($back, $NEgold, 100, 18, 0,0,20, 13);
imagecopy($back, $NWgold, 120, 18, 0,0,20, 13);
imagecopy($back, $NEgold, 140, 18, 0,0,20, 13);

//head row2
imagecopy($back, $NEgold, 80, 31, 0, 0, 20, 13);
imagecopy($back, $SWgold, 100, 31, 0,0,20, 13);
imagecopy($back, $SEgold, 120, 31, 0,0,20, 13);
imagecopy($back, $NWgold, 140, 31, 0,0,20, 13);
//head row3
imagecopy($back, $SEgold, 80, 44, 0, 0, 20, 13);
imagecopy($back, $NWgold, 100, 44, 0,0,20, 13);
imagecopy($back, $NEgold, 120, 44, 0,0,20, 13);
imagecopy($back, $SWgold, 140, 44, 0,0,20, 13);
imagecopy($back, $NWgold, 80, 57, 0, 0, 20, 13);
imagecopy($back, $NEgold, 100, 57, 0,0,20, 13);
imagecopy($back, $NWgold, 120, 57, 0,0,20, 13);
imagecopy($back, $NEgold, 140, 57, 0,0,20, 13);
imagecopy($back, $SWgold, 80, 70, 0, 0, 20, 13);
imagecopy($back, $NEgold, 100, 70, 0,0,20, 13);
imagecopy($back, $NWgold, 120, 70, 0,0,20, 13);
imagecopy($back, $SEgold, 140, 70, 0,0,20, 13);
imagecopy($back, $SWgold, 100, 83, 0,0,20, 13);
imagecopy($back, $SEgold, 120, 83, 0,0,20, 13);

imagecopy($back, $NWgold, 20, 96, 0, 0, 20, 13);
imagecopy($back, $NEgold, 40, 96, 0, 0, 20, 13);
imagecopy($back, $NWgold, 60, 96, 0, 0, 20, 13);
imagecopy($back, $NEgold, 80, 96, 0, 0, 20, 13);
imagecopy($back, $NWgold, 100, 96, 0, 0, 20, 13);
imagecopy($back, $NEgold, 120, 96, 0, 0, 20, 13);
imagecopy($back, $NWgold, 140, 96, 0, 0, 20, 13);
imagecopy($back, $NEgold, 160, 96, 0, 0, 20, 13);
imagecopy($back, $NWgold, 180, 96, 0, 0, 20, 13);
imagecopy($back, $NEgold, 200, 96, 0, 0, 20, 13);

imagecopy($back, $NWgold, 0, 109, 0, 0, 20, 13);
imagecopy($back, $SEgold, 20, 109, 0, 0, 20, 13);
imagecopy($back, $SWgold, 40, 109, 0, 0, 20, 13);
imagecopy($back, $SEgold, 60, 109, 0, 0, 20, 13);
imagecopy($back, $SWgold, 80, 109, 0, 0, 20, 13);
imagecopy($back, $SEgold, 100, 109, 0, 0, 20, 13);
imagecopy($back, $SWgold, 120, 109, 0, 0, 20, 13);
imagecopy($back, $SEgold, 140, 109, 0, 0, 20, 13);
imagecopy($back, $SWgold, 160, 109, 0, 0, 20, 13);
imagecopy($back, $SEgold, 180, 109, 0, 0, 20, 13);
imagecopy($back, $SWgold, 200, 109, 0, 0, 20, 13);
imagecopy($back, $NEgold, 220, 109, 0, 0, 20, 13);

imagecopy($back, $SWgold, 0, 122, 0, 0, 20, 13);
imagecopy($back, $NEgold, 20, 122, 0, 0, 20, 13);
imagecopy($back, $NWgold, 40, 122, 0, 0, 20, 13);
imagecopy($back, $NEgold, 60, 122, 0, 0, 20, 13);
imagecopy($back, $NWgold, 80, 122, 0, 0, 20, 13);
imagecopy($back, $NEgold, 100, 122, 0, 0, 20, 13);
imagecopy($back, $NWgold, 120, 122, 0, 0, 20, 13);
imagecopy($back, $NEgold, 140, 122, 0, 0, 20, 13);
imagecopy($back, $NWgold, 160, 122, 0, 0, 20, 13);
imagecopy($back, $NEgold, 180, 122, 0, 0, 20, 13);
imagecopy($back, $NWgold, 200, 122, 0, 0, 20, 13);
imagecopy($back, $SEgold, 220, 122, 0, 0, 20, 13);

imagecopy($back, $SWgold, 20, 135, 0, 0, 20, 13);
imagecopy($back, $SEgold, 40, 135, 0, 0, 20, 13);
imagecopy($back, $SWgold, 60, 135, 0, 0, 20, 13);
imagecopy($back, $SEgold, 80, 135, 0, 0, 20, 13);
imagecopy($back, $SWgold, 100, 135, 0, 0, 20, 13);
imagecopy($back, $SEgold, 120, 135, 0, 0, 20, 13);
imagecopy($back, $SWgold, 140, 135, 0, 0, 20, 13);
imagecopy($back, $SEgold, 160, 135, 0, 0, 20, 13);
imagecopy($back, $SWgold, 180, 135, 0, 0, 20, 13);
imagecopy($back, $SEgold, 200, 135, 0, 0, 20, 13);

imagecopy($back, $SWgold, 80, 148, 0, 0, 20, 13);
imagecopy($back, $NEgold, 100, 148, 0, 0, 20, 13);
imagecopy($back, $NWgold, 120, 148, 0, 0, 20, 13);
imagecopy($back, $SEgold, 140, 148, 0, 0, 20, 13);

imagecopy($back, $NWgold, 80, 161, 0, 0, 20, 13);
imagecopy($back, $SEgold, 100, 161, 0, 0, 20, 13);
imagecopy($back, $SWgold, 120, 161, 0, 0, 20, 13);
imagecopy($back, $NEgold, 140, 161, 0, 0, 20, 13);

imagecopy($back, $SWgold, 80, 174, 0, 0, 20, 13);
imagecopy($back, $NEgold, 100, 174, 0, 0, 20, 13);
imagecopy($back, $NWgold, 120, 174, 0, 0, 20, 13);
imagecopy($back, $SEgold, 140, 174, 0, 0, 20, 13);

imagecopy($back, $NWgold, 80, 187, 0, 0, 20, 13);
imagecopy($back, $SEgold, 100, 187, 0, 0, 20, 13);
imagecopy($back, $SWgold, 120, 187, 0, 0, 20, 13);
imagecopy($back, $NEgold, 140, 187, 0, 0, 20, 13);

imagecopy($back, $SWgold, 80, 200, 0, 0, 20, 13);
imagecopy($back, $NEgold, 100, 200, 0, 0, 20, 13);
imagecopy($back, $NWgold, 120, 200, 0, 0, 20, 13);
imagecopy($back, $SEgold, 140, 200, 0, 0, 20, 13);

imagecopy($back, $NWgold, 80, 213, 0, 0, 20, 13);
imagecopy($back, $SEgold, 100, 213, 0, 0, 20, 13);
imagecopy($back, $SWgold, 120, 213, 0, 0, 20, 13);
imagecopy($back, $NEgold, 140, 213, 0, 0, 20, 13);
imagecopy($back, $SWgold, 80, 226, 0, 0, 20, 13);
imagecopy($back, $NEgold, 100, 226, 0, 0, 20, 13);
imagecopy($back, $NWgold, 120, 226, 0, 0, 20, 13);
imagecopy($back, $SEgold, 140, 226, 0, 0, 20, 13);

imagecopy($back, $NWgold, 80, 239, 0, 0, 20, 13);
imagecopy($back, $SEgold, 100, 239, 0, 0, 20, 13);
imagecopy($back, $SWgold, 120, 239, 0, 0, 20, 13);
imagecopy($back, $NEgold, 140, 239, 0, 0, 20, 13);
imagecopy($back, $SWgold, 80, 252, 0, 0, 20, 13);
imagecopy($back, $NEgold, 100, 252, 0, 0, 20, 13);
imagecopy($back, $NWgold, 120, 252, 0, 0, 20, 13);
imagecopy($back, $SEgold, 140, 252, 0, 0, 20, 13);

imagecopy($back, $NWgold, 80, 265, 0, 0, 20, 13);
imagecopy($back, $SEgold, 100, 265, 0, 0, 20, 13);
imagecopy($back, $SWgold, 120, 265, 0, 0, 20, 13);
imagecopy($back, $NEgold, 140, 265, 0, 0, 20, 13);
imagecopy($back, $SWgold, 80, 278, 0, 0, 20, 13);
imagecopy($back, $NEgold, 100, 278, 0, 0, 20, 13);
imagecopy($back, $NWgold, 120, 278, 0, 0, 20, 13);
imagecopy($back, $SEgold, 140, 278, 0, 0, 20, 13);

imagecopy($back, $NWgold, 80, 291, 0, 0, 20, 13);
imagecopy($back, $SEgold, 100, 291, 0, 0, 20, 13);
imagecopy($back, $SWgold, 120, 291, 0, 0, 20, 13);
imagecopy($back, $NEgold, 140, 291, 0, 0, 20, 13);
imagecopy($back, $SWgold, 80, 304, 0, 0, 20, 13);
imagecopy($back, $NEgold, 100, 304, 0, 0, 20, 13);
imagecopy($back, $NWgold, 120, 304, 0, 0, 20, 13);
imagecopy($back, $SEgold, 140, 304, 0, 0, 20, 13);
imagecopy($back, $NWgold, 60, 317, 0, 0, 20, 13);
imagecopy($back, $NEgold, 80, 317, 0, 0, 20, 13);
imagecopy($back, $SEgold, 100, 317, 0, 0, 20, 13);
imagecopy($back, $SWgold, 120, 317, 0, 0, 20, 13);
imagecopy($back, $NWgold, 140, 317, 0, 0, 20, 13);
imagecopy($back, $NEgold, 160, 317, 0, 0, 20, 13);

imagejpeg($back);
imagedestroy($back);
imagedestroy($NEred);
imagedestroy($NWred);
imagedestroy($NEgold);
imagedestroy($NWgold);
imagedestroy($SEgold);
imagedestroy(SWgold);
?>