fixes in the photo script
fixes in the photo script