Improving the performance of image segmentation methods through background subtraction