A task-driven feedback imager with uncertainty-driven hybrid control