Wrote filter to convert RGB to Gray