Simple BMP encoder (24 bit)