adds media parameter ( to post images) to the postTweet method and also adds some debug print for entities.