changed bg subtraction to use chromaticity and brightness, removed morpho