added an option to automatically acpc align the images