A portrait of the old man hung on the wall.

Literal

Old-man [possessive-の] portrait [subject-が] wall [on-に] was-hanging.

肖像画 (しょうぞうが, 'portrait painting') is formal vocabulary. 掛かっていた uses the intransitive 掛かる ('to hang') in past continuous. A visual scene-setting detail.