script to upload photos from local machine