Move methods storePhotons to the end of calculations as in: [https://github.com/lancelet/sunflow/commit/8abc1692ed254ec8d2639c9e5f37be322f704d1a](https://github.com/lancelet/sunflow/commit/8abc1692ed254ec8d2639c9e5f37be322f704d1a)