deinit the bmp files