Simplify BMP.cpp