fix: support bmp file for d2 library