GIMP has been able to output to standards compliant all-browser compatable HTML with images for a long time now. What's different about this?
Or perhaps you just didn't know about it... you coulda just used their code (under appropriate license)... it's an open-source project after all.
I would encourage anyone who feels the need to convert a format to HTML use GIMP. It's not limited with the bmp->html either as anything it can open can be saved as HTML.
www.gimp.org