Added filtering to color recognition