get debug from envars
add worker scale up workaround
cast worker to int
convert to int
refactored image procesing into functions
split opencv main into functions.