fixed bugs that were making demosaic not work
Merge branch 'verilog' of https://github.com/jameshegarty/darkroom into verilog