initial commit (copy from simple_pathtracer)