fn encode_png(thumbnail: DynamicImage) -> Result<Vec<u8>>
Encodes one still thumbnail into a PNG buffer.
The buffer and writer remain confined to this synchronous kernel.