added an aspect ratio test which totally eliminated false positives on cbins2.avi
split some stuff out of a large loop