Some small changes:
"BM" => 'BM'
writting => writing
"Vwidth/Vheight/vplanes" => 'Vwidth/Vheight/vplanes'
I would rather you not redefine those constants. Since you're not actually defining anything new you should just document that the user should use those specific XBM constants instead of redefining them.