From this question I have the following code:
def create_collage(cols, rows, width, height, listofimages): thumbnail_wi