implemented the BMP headers