Here use this template for your blog page: https://gist.github.com/rahularyan/fe5597a1622d7bcdeb0e
Has this problem been resolved yet? 3 people from my team tried uploading images and nothing appeared. After refreshing, the images were there. Only one of us is using Gravatar.
Did you noticed there is a menu item called Notification, if you add it to menu it will show all notification in menu as dropdown.
You can initiate you code after WP init hook and everything will as usual. Create a page in wordpress called import, and then create a new file called page-import.php inside active theme dir and paste your code without: require('wp-blog-header.php'); and just visit that page and import will be started.