Scanning gate imaging of quantum point contacts and the origin of the 0.7 anomaly