这是定语从句的省略
全句是
The picture that(which) is hanging on the wall is painted by my nephew
也可以理解为 hanging 是动名词作定语