fixed picture.js to handle undefined for photo array
Merge pull request #18 from tleung999/photo

fixed picture.js to handle undefined for photo array