add functionality to read file for PERSP slice coordinates and change constants file to define coordinate indices instead of values