It's interesting, because in Odyssey, those rooms don't seem to exist, at least, not entirely.
Paintings do seem to be specifically used for collecting Power Stars, and I don't know why Peach would keep more than one (or even just one) painting of Goombas in a crossroads-style room/hallway hybrid thingy.