Did temporarily fix the core data racing condition by moving adding image data to main thread.