added support for buffer/uint8_clamped