Added test images. Made threshold