rework the rack code to use ThumbnailGenerator methods