A sample of image processing with JavaScript and canvas