sets up the model for imgless