Improved debugger to reset empty pixels i
Added gradient test to debugger