Context:The painting in Mark's living room shows an oak tree. *It* is to the right of the bookcase.

Is "It" the same as "The painting"?
yes