Updating HTML title for photos loaded via AJAX. Closes #1171