fixed bug for macro scripting when calling bead registration
added option to manually specify the reference timepoint