re-implement RGBColorFilter as simpler class