Light perception and signal modulation during photoorientation of flagellate