Cleanup imgtools
Unroll inner loops of operators