image preview working

if preview has been uploaded, it's used, otherwise we use the first
photo from the slideshow.