lower CPU usage in debayer script
fixes for new module layout from John Wiseman