Added validation for thumbnail filetype