Safer alternative to dd for writing images to SDCards and MMC memory