adding scripts for photos