Update add photo function