Plot detail template: image element needs an ID whether or not photos exist

Fixes #794