Pixel value to bytes and pixel value reconstruction fixed.