Added conditionals to pure_post_thumbnail()