demosaic almost working

oValid is somehow high in the end... let's look into it.