add photos backup function