Converter from bmp format to a custom binary format used in simple_GUI