Added functionality for post thumbnails