updates determine-handler to check whether  image has already been ingested.