Added ability to put thumbnails which are prewritten directly in the gallery.