commit a post and image