Image manipulation with canvas and getUserMedia