Update overlay drawing logic when resizing