Added filtering of sphere detection; Output image is now bigger