We propose an imaging system with scanning feedback of an optical phased array (OPA) for moving targets with unknown speed. The system combines OPA scanning velocimetry capability with OPA-based ghost imaging to enable trajectory tracking of targets moving within the field-of-view of the system while accomplishing image reconstruction. The proposed system can perform image reconstruction for millimeter-scale moving targets placed up to 20 m away from the camera. The system can be applied in areas such as autonomous driving and high-resolution imaging.