update thumbnails generation process, add thumbnails endpoint, update poilcy