After long time with xenforo and it's experience the code of threadthumbanil is now shorter 50%
and lighter without too much template modification. removed multiple function to check the image URL and attachment
FIXED : Now it will select attachment which image only not the first attachment only
ADDED : Default thumbnail URL if there is not image and attachment thumb