script to get images to put in report