update delete photos  method and test.