image is saved to core data