High-resolution adaptive imaging of a single atom