Checking for bad bit in image stream