Functional built-in-test in a pipelined image processor