added clipwidth/height and maxlongest/shortest to cover making thumbnails for folders