add a scale of pixels written when write bmp files