Resolves #2 : Adding id and clickhandler on thumbnails.

Resolves #16 : Fix faulty mime types.