Added support to mutli-partition images.
Added routine to get the sector size