clean up and start of thumbnail sorter