Integrating the RegionPhotoTableViewController with core data.
Optimization changes