we only need one of the BMP header functions

Additionally we don't need them when we don't write to a file.

Change-Id: Ib38f68f8f88490f6dfff9fffe7924a707438a040