In addition to @anon73440385’s answer, you can create your own frame style.
If you derive (right-click on an existing frame style and
New) your custom style from Frame, it will be anchored To Paragraph. If you derive it from Graphics, it will be anchored To character or more exactly in the default mode you defined in
But there is no big difference between To paragraph and To character. It only matters is the paragraph straddles a page boundary. To paragraph is strictly equivalent to anchoring to the zeroth character of the paragraph, i.e the very beginning. Then To paragraph will try to maintain the image on the same page as the paragraph beginning, while To character will position the image on the same page as its anchor.
The real difference is with As character where the image is inlined in the paragraph and submitted to flow and justification like all other characters.
Alignment, both horizontal and vertical is set in the frame style.
To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!
In case you need clarification, edit your question (not an answer which is reserved for solutions) or comment the relevant answer.