Tools to generate block map (AKA bmap) and flash images using bmap