added functions to ingest, and select images