Added ApplyFilter function, does the same as applygrayscale but allows to choose color