no solution to jpg file and filter type in filedialog