Generate thumbnails of posts.