fixed support for bmp files