Added BMP loading code with tests.