bmp frequently contain less than x^n colors

1) bmp file palette may contain less than x^n colors …
2) bmp file may use color indexes that are not in it's own palette