HTML5 picture editor based on canvas