Added approximation filter and pyramid generation