Multithread pixel update - raw data error fix

Forward port of #3952.