bugfix for @sellberg: made sure beam center gets passed through to optgeom