Updates to reading xml file and faster bitmap processing