fix recognizing bmp files