Modeling the Task Control of Gaze