Changed Render() to work better for panning and scrolling.