Grayscale Image

Convert an image to grayscale using luminosity-weighted averaging.