This is a fixed match.
It can be understood that of, as a preposition, is used to express belonging to, and being related to something, that is, a picture of something or a person. This is a fixed collocation. On the basis of understanding, it is best to remember that there are many fixed collocations in English.
Prepositions, English prepositions, express the relationship between nouns, pronouns, etc. and other words in the sentence. They cannot be used as separate sentence components in the sentence. A preposition is usually followed by a noun, pronoun or other part of speech, phrase or clause equivalent to a noun as its object, indicating its relationship with other components.