Update code to create thumbnails.