preliminary debayer work done.