Created a simple json file database and looping over images.