corrected getterphoto script