directResize replacement