artmagic.c: moved some functions into driver class (nw)