fix to avoid copies of same data that much - how much we have mirrors
changes in file.img handling to get around itroduced problem with kpartx
see https://github.com/xbianonpi/xbian/issues/566#issue-36983620