chk for jpg file ext