d20 filewrite / remote capture support from nafraf in http://chdk.setepontos.com/index.php?topic=650.msg104357#msg104357