Added bilinear filtering.