stable version of get_photo.sh