don't save the image unless the post is saved successfully