update image and category for the post