support 1,4,8 bit BMP