Added some comments to ImageManipulation.js to make the code clearer for other programmers.