Programmatic Pan+Zoom with Window Resizing