update take photos Function

update take photos Function and update pic ref..