fixed bmp output