updated perspective code to use load_images