add some code from photoshare to project