Implemented the save method to save the photos and names to the drive.