Optimized colorspace.js AlternateCS_getRgbBuffer