first sketch for filtering colors
added some debugging cod for last commit
writing image to flt_output, removed some unused output
fixed color writeback