write bmp file is ok