The role of scanning mode in near-field optical microscopy