// var sys = require('sys');
var exec = require('child_process').exec;

module.exports = {
    capture: function () {
        exec("raspistill -o 1.jpg");
    }
}
@@ -123,34 +123,114 @@
     
-exec(%22raspistill -o 1.jpg%22
+var fileName = %22img_%22 + new Date().valueOf() + %22.jpg%22;%0A        exec(%22raspistill -o imgCapture/%22 + fileName
 );%0A 

Save photo to correct location with proper name.