extra debug output, cleanup memory
add more debug output on check pixel