- thumbnail gallery entryprocedure
Returns a link to the thumbnail picture of the selected entry under the selected gallery.
Chooses thumbnail/epeg or thumbnail/imlib2 based on the entry file.
Side-effects: creates the thumbnail if it does not exist and creates the thumbs directory as determined by thumb-dir if necessary.