Passthrough replaced by cropbox + hack to make histogram class working + calc chi-sq distance