update error with 0 and 255 flipped for picture assignment