Fixed rendering bug and added CameraTool and related classes.