refactor imagePickerController into buildPhotoDict
reorganize buildPhotoDictionary