test encoding and regenrate thumnails