Added support to mutli-partition images.
Added routine to get the sector size
Manually merged volume handling fixes