some deletions and updates to photon plotting code