Rename function to Thumbnail-Function.php

Add this code for function.php