change url when photo delete