create and manage thumbnails