Added ability to attach a featured image to a post

using the post_thumbnail parameter