The dax format is 16 bit unsigned integer. Change addFrame to avoid rollover.