improve file thumb creation