Scanning Gate Imaging In Confined Geometries