public Pixel[] getAdjPositions(int[] pos, int axis) {
		if(axis >= DIMENSION || pos.length != DIMENSION) {
			System.err.println("WARNING: Wrong dimension on request for adjacent positions!");
			return null;
		} else {
			Pixel[] retPixels = new Pixel[2];
			for(int i=0; i<DIMENSION; i++) {
				if(i == axis) pos[i]--;
			}
			if(isBoundary(pos, axis) < 0) retPixels[0] = null;
			else retPixels[0] = this.get(pos);
			for(int i=0; i<DIMENSION; i++) {
				if(i == axis) pos[i]+=2;
			}
			if(isBoundary(pos, axis) > 0) retPixels[1] = null;
			else retPixels[1] = this.get(pos);
			return retPixels;
		}
	}