implemented photo adding