pub fn encode_grayscale(pixels: &[u8], total_pixels: u32) -> Result<Vec<u8>>
Encode with tag 0x01; the returned bytes include the tag.
0x01