Improved archive support for images

If the image has no title and no caption, a thumbnail will be displayed
with clickable date. Also fixes display of other untitled entries that
cannot have a title generated from excerpt.