fixed memory leaks in diimage.c (nw)
move generic functions out of machine/slapfght.c to drivers/slapfght.c, only keep MCU stuff in there