added concept of neighborhoods
added preprocessing for all images