Cell-intrinsic and circuit mechanisms that shape visual processing in Drosophila