Updated function.php

Added thumbnail support.