added bilinear filtering for display