update post image directory.