Checking to see if image is in core data before putting it there