A minimal BMP library