Image Processing Lib. in Javascript using HTML5 Canvas