use file descriptor passing

With udisks2 imagewriter does not need to run as root
also check whether full disk device is mounted