Add funtion to create datasets from images

Function create_datasets creates a training and test list from the
images in images/.