capture pictures the HTML5 way