edited addPhoto