Created a filter for gray scaling.