modify photo share and api