The thumbnail size function causes an error on my setup. Commenting these 3 lines out removes the error. Maybe my setup though.