removing unneeded thumbnail code