Raspberry piのカメラモジュールで撮影した画像をnode.jsで立てたサーバーに表示する

カメラモジュールの使い方はここ。
http://www.mztn.org/rpi/rpi23.html
最初カメラモジュールの挿入の仕方がわからなかったので、以下の写真を参考に。
http://www.odin.hyork.net/write/write0727.html

静止画を撮影

$ raspistill -w 480 -h 360 -n -o normal2.jpg

node.jsでサーバーを建てる。ここを参考にした。
http://stackoverflow.com/questions/9540978/nodejs-how-to-read-and-output-jpg-image
server.js

var http = require("http");
var fs = require("fs");

fs.readFile('normal2.jpg', function(err, data) {
    if (err) throw err; // Fail if the file can't be read.                      
    http.createServer(function(req, res) {
        res.writeHead(200, {'Content-Type': 'image/jpeg'});
        res.end(data); // Send the file data to the browser.                    
    }).listen(8080);
    console.log('Server running at http://localhost:8080/');
})
$ node server.js

ブラウザで192.168.1.58:8080にアクセス