added ability to either autogenerate path to thumb, or specify path in the anchor tag with a data-thumb attribute