Re #9249 Center and rotate detector according to data file