grayscale reconstruction