Saving captured photo from camera in core data