Added dynamic frame counter
Added window resize callback to enable coordinate wrapping to be adjusted on resize