setup to save thumbnails