scratch/utils: ilim,test_ilim: updated/fixed prev image code (templates methods were flawed), cleaned up everything and moved to ilim namespace, added g,b,a channels, added some tests in test_ilim