update a post and insert image in the post