hopefully fixed problem with pseudo black frame while scanning carcolors, by setting some more conditions for a "valid" input frame