A method, a controller, and a non-transitory medium for controlling an optical-image pickup apparatus. Receiving quality data representative of quality of wavefront data. Comparing the quality data to a threshold. Performing normal adaptive optics feedback if the wavefront data is of sufficient quality. Performing an initial adjustment if the wavefront data is not of sufficient quality. The initial adjustment comprising sending control information to modify the optical path in which light is radiated onto a subject. After the initial adjustment, receiving new quality data that is based on new wavefront data after the optical path has been modified. Performing the normal adaptive optics feedback if the quality information indicates that the wavefront data is of sufficient quality. Re-performing the initial adjustment if the new quality information indicates that the wavefront data is not of sufficient quality.