using html canvas instead of caman.js