Adding image to data set

I am attempting to make a vacation app. One part I want to do this:

  1. user fill out form with name of location
  2. a stock image of that photo that we have is then inserted into the data set
  3. create a card list with our stock image and name of location

How would I go about making it so that the submission of a certain name would trigger an image to be added to their data set?