http://pixelfx.org/tuts/html/staticam.html