Remove obsolete cruft.
Paranoid check.

Ensure we don't accidentally update every photo, when only one photo to
be updated.
Fix uninitialized variable on fresh page load.