add thumbnail support in atom file and loader; upgrade foundation to 5.0.2