Situation: I am stepping on some mess trying to get my textbook from the bookshelf.
Alternative situations: I want to get a book from the bookshelf next to the painting. I want to get a book from the bookshelf in between the door.
Question: Is the picture on the wall or on bookshelf?