thumbnail script upgrade