changed script for photo-stream