libraw: redesign api