added a new parameter `color` to the callback function.
the method `imgcolr` can be invoked on the same image node more than once.
refactored some method.
added jshint support