added bmp support for faster calculations.
.