Circuit mechanisms underlying the encoding of ethologically relevant visual stimuli in the retina