Center an element which is "inline with text"
Use the text formatting for the paragraph containing the image rather than the image itself.

Click beside the image to move the insertion point to the paragraph, then use the format inspector to set the alignment.