more modularity, makes a map of images with their location and direction as the key