removeEdges corrected to find corners in each scaled image