script was generating thumb data wrong