restructured to code so that now patches closer to the eye are loaded first