Add remake thumbnail function.