resize bmp - convert header