use new thumb api to find if file exists, ref #503
Merge branch 'master' into integration