Part 2: Create grayscale image from color image. (40%)

Signed-off-by: Chris Cheung <chriscsc@me.com>