lagarith: pad RGB buffer by 1 byte.