iterating also over TPGs and Masks in recomputeSceneImageGeometry