Added a run action and made convertToGrayscale multi threaded.