Use local variables in functions
Added a test script for import-photos.sh