now we keep image collection in memory