BMP encoder by Michel Bardiaux, mbardiaux mediaxim be