changed core data modal to save image path rather than image data