Visualizing intramolecular distortions as the origin of transverse magnetic anisotropy