Encoder/Decoder adapted from: https://github.com/yufeih/Nine.Imaging/ https://imagetools.codeplex.com/ TODO: - Add support for all bitmap formats.