Use openmp to improve performance.
Refactor camera hierarchy