Ghost Imaging With A Single Detector