Neural circuits for visual feature detection