added checkThumbsDir method to media module