Gamma Correction library for Javascript using HTML5 Canvas