Moved the camera capturing code into the SavedState class and also added so that instancing nodes which use the main camera as pivot get captured in the editor