Validate write bmp file