Add saving of photo IDs to user defaults