removes unused var
better logic for whether image is codeable or not
refactoring of threadx.results to make it way faster