Added grayscale filtering for images