Implemented BMP 3.x reader and writer