trying to get drawpanel to refresh correctly when resizing and scrolling