add photo and update config