Sexual dimorphism in a photoreceptor