Optics of Thought: Logic and Vision in Müller, Helmholtz, and Frege