Intraoperative imaging and tool tracking for robotic surgery