resource extension check is case-insensitive

fixes #187.

This also makes resource thumbnails clickable to go to the full image.