Add read pixel function, but D[0..11] is wrong