Implemented BMP 4.x reading and writing.