passing thumbnail params to getThumbType, as suggested by TimStarling in a comment...