add pics, weighted average filter as described in p120