PG-SLAM: Photo-realistic and Geometry-aware RGB-D SLAM in Dynamic Environments