Deals with post thumbnail images
more useful id and added post_class functoni