Fixed the debayering code