Convert 24 bit bmp to 16 bit