BMP image fixes

BMP image handling now complete.
The only standard BMP feature not supported is transparency (alpha).