Add the background convention, and also automatically mask unwanted pixel.