Core Data working for saving photos.