change to new js/lib/bmp-js