added file type only img supported pt.