Fix orientation of thumbnails

Also add an medium thumbnail size and use it in the lightbox.
Order tags name in reverse order.