Polaritonic molecular clock for all-optical ultrafast imaging of wavepacket dynamics without probe pulses