Update thumbnail code