Thumbnail Function 

Add to the function.php