input:the 8-bit srgb buffer to be written to disk
