swscale context handling, debug output