Get an error when the result image has the grong type.