added grayscale option, not yet working