Add write bmp file