Need to change BOTH the LOGSIZE AND Number_of_bits to get correct output. Debugged this from the fact that we were writing some BLACK(=0) data when we were writing with the camera off, with switch[4] ON -> which means the color pixel was the one being written into the ZBT. Gim helped DEBUG