implemented map stuff. refactored photo tvc.