thumbnail saved when posting after postid generated