fixed bmp parsing bug where some header versions were not getting a palette entry set
applied jpg fix