Added code to generate a new BMP from the XML file.