some adjustments for polygon detection to get better results
use static file count so we get all our image in debug mode